﻿using Authority.Client;
using CGT.OP.App_Start;
using CGT.OP.Common;
using OF.Utility;
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Mvc;


namespace CGT.OP.Controllers
{
    public class HomeController : BaseController
    {
        public ActionResult Index()
        {
            return View(CurrentUser());
        }

        /// <summary>
        /// 获取菜单
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public ContentResult GetMenuList()
        {
            UserAuthority Authority = new UserAuthority();
            string content = "";
            Authority.GetAuthorityMenuListByUserId(CurrentUser().UserId, ConfigHelper.GetValue("SystemCode"), ConfigHelper.GetValue("AuthorityUrl"), out content);
            return ReturnResult(content);
        }


    }
}